#include <stdio.h>
#include <math.h>
#include <time.h>
int main()
{
   int i=0,a[99]={0};float b[99];
   srand((unsigned)time(NULL));
   for(i=0;i<100;i++)
{ 
     a[i]=rand()%100;
     if(a[i]==0)b[i]=0;
     else b[i]=1.0/a[i];
    printf("%d %d %f\n",i+1,a[i],b[i]);
}
int y=0;float k=0;
for(i=0;i<100;i++) {if(y<a[i])y=a[i];}
printf("max");
printf(" %d",y);
for(i=0;i<100;i++) {if(k<b[i])k=b[i];}
printf(" %f\n",k);
int u=100;float o=1;
for(i=0;i<100;i++) {if(u>a[i])u=a[i];}
printf("min");
printf(" %d",u);
for(i=0;i<100;i++) {if(o>b[i])o=b[i];}
printf(" %f\n",o);
float aa=0;float bb=0;
for(i=0;i<100;i++)aa+=(a[i]*1.0)/100;
for(i=0;i<100;i++)bb+=b[i]/100;
printf("avel");
printf(" %f %f\n",aa,bb);
 return 0;
}
